﻿using ChongJu.ModelManager;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace ChoJu.Converters.Uc
{
    public class WorkModConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var mod = (RunTypeEnum)value;
            switch (mod)
            {
                case RunTypeEnum.Rating: return "分拣模式";
                case RunTypeEnum.Verification: return "验证模式";
                case RunTypeEnum.Collection: return "采集模式";
                case RunTypeEnum.Calibration: return "相机校准";
                default: return "空闲";
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
